﻿using System;
using System.Runtime.Serialization;

namespace System
{

    /// <summary>
    /// 对象属性更改信息
    /// </summary>
    [Serializable]         
    public class ModifyInfo
    {
        public ModifyInfo(string tableName, string field, object oldValue, object newValue, string dbType, string description)
        {
            TableName = tableName;
            Field = field;
            OldValue = oldValue;
            NewValue = newValue;         
            DbType = dbType;    
            Description = description;
        }
        public ModifyInfo()
        {          
        }
        /// <summary>
        /// 表名
        /// </summary>              
        public string TableName { get; set; }
        /// <summary>
        /// 字段名
        /// </summary>            
        public string Field { get; set; }
        /// <summary>
        /// 修改前的值
        /// </summary>               
        public object OldValue { get; set; }
        /// <summary>
        /// 修改后的值
        /// </summary>                
        public object NewValue { get; set; }
      
        /// <summary>
        /// 数据库字段类型
        /// </summary>                
        public string DbType { get; set; }

        /// <summary>
        /// 字段描述
        /// </summary>               
        public string Description { get; set; }
    }
}
